Skip to content

Conversation

@schweitzpgi
Copy link
Collaborator

This PR greatly simplifies the use of cudaq::get_state by limiting its applicability strictly to local simulation execution contexts. Prior attempts were made to make cudaq::get_state generally available regardless of the target execution context. This level of support is being discontinued.

  • Move the qvector ctor overloads to the cudaq::state class. This simplifies qvector by making it only possible to initialize a qvector with a cudaq::state object and dropping all the overloads.
  • Fix tests. Adapt the regression tests.
  • Drop state with non-simulation targets.
  • Add code to distinguish between floats and complex floats and get rid of a bunch of redundant code that wasn't needed. Also, update tests.

Description

github-actions bot pushed a commit that referenced this pull request Nov 18, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Nov 18, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Nov 18, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Nov 19, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

@schweitzpgi schweitzpgi enabled auto-merge (squash) November 20, 2025 00:18
@schweitzpgi schweitzpgi requested a review from 1tnguyen November 20, 2025 00:18
github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

schweitzpgi and others added 3 commits November 20, 2025 13:09
This PR greatly simplifies the use of cudaq::get_state by limiting its
applicability strictly to local simulation execution contexts. Prior
attempts were made to make cudaq::get_state generally available regardless
of the target execution context. This level of support is being discontinued.

- Move the qvector ctor overloads to the cudaq::state class. This
  simplifies qvector by making it only possible to initialize a
  qvector with a cudaq::state object and dropping all the overloads.
- Fix tests.  Adapt the regression tests.
- Drop state with non-simulation targets.
- Add code to distinguish between floats and complex floats and get rid
  of a bunch of redundant code that wasn't needed. Also, update tests.
- Make all command line arguments be in the same order.
- Don't implicit handle density matrix as a flattened vector (#6)

Signed-off-by: Eric Schweitz <[email protected]>
Signed-off-by: Thien Nguyen <[email protected]>
Signed-off-by: Eric Schweitz <[email protected]>
Copy link
Collaborator

@sacpis sacpis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @schweitzpgi.

@sacpis
Copy link
Collaborator

sacpis commented Nov 20, 2025

Seems like we have a few test failures.

github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants